# Maintainer:

pkgname=perl-crypt-passwdmd5
pkgver=1.42
pkgrel=1
pkgdesc="Provides a crypt()-compatible interface to new MD5-based crypt()"
arch=('any')
url="https://search.cpan.org/dist/Crypt-PasswdMD5"
license=('GPL' 'PerlArtistic')
depends=('perl')
provides=('perl-passwd-md5')
replaces=('perl-passwd-md5')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-$pkgver.tgz)
sha512sums=('92b18cb50061ff0d017e26ebeb4ebf07199d7833518974c3f130d81a30f37a01cd299f4776bfa1e8cd1ca4e6e5adcd72d93ea4dcfed7a573084f0a9c7245eef8')

build() {
  cd Crypt-PasswdMD5-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Crypt-PasswdMD5-$pkgver
  make test
}

package() {
  cd Crypt-PasswdMD5-$pkgver
  make DESTDIR="${pkgdir}" install
}
